package com.gpy.hospital.cms.service.impl;

import com.gpy.hospital.cms.dao.BookCountMapper;
import com.gpy.hospital.cms.pojo.BookCount;
import com.gpy.hospital.cms.service.IBookCountService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.Action;

/**
 * @Author
 * @Date 2020/5/27 19:38
 * @Desc
 **/
@Service
public class BookCountServiceImpl implements IBookCountService {

    @Autowired
    private BookCountMapper bookCountMapper;

    @Override
    public BookCount getByEmail(String email) {
        return bookCountMapper.getByEmail(email);
    }

    @Override
    public void insert(String email, int count) {
        bookCountMapper.insert(email, count);
    }

    @Override
    public void update(String email, int i) {
        bookCountMapper.update(email, i);
    }
}
